package com.duqc.web.controller;

import com.duqc.web.dto.TransactionalDTO;
import com.duqc.web.service.TransactionalService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @ClassName TransactionalController
 * @Description TODO
 * @Author duqc
 * @Date 2021/5/8
 **/
@Slf4j
@RestController
@RequestMapping("/transactional")
@RequiredArgsConstructor
public class TransactionalController {

    private final TransactionalService transactionalService;

    @GetMapping("/add")
    public List<TransactionalDTO> addInfo() {
        return this.transactionalService.addInfo();
    }

}
